home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 December / Chip_2001-12_cd1.bin / zkuste / tuning / download / xteq / setup.exe / {app} / plugins / XQ FileSystem NumericTail.xpl < prev    next >
Text File  |  2001-05-04  |  1KB  |  48 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH"="System\File System\Windows 9x/ME Options\Misc"
  5. "NAME"="DOS Filenames with "~""
  6. "VERSION"="1.55"
  7. "OSVERSION"="10101"
  8. "LANGUAGE"="VBScript"
  9. "TEXT 1"="Create DOS-filenames with "~" char"
  10. "WARNING"="1"
  11. "DESCRIPTION 1"="!!!WARNING!!!"
  12. "DESCRIPTION 2"="Changing this setting can lead to serious problems because it might change the name of some system folders (like "Program Files" [Progra~1]). ONLY change it when you are sure you don't need any 8+3 DOS-filenames."
  13. "DESCRIPTION 3"="By default, Windows uses the char "~" to create short filenames (DOS: 8+3) for long filenames. Deactivate this option when you don't want to have this."
  14. "DESCRIPTION 4"="!!!WARNING!!!"
  15. "AUTHOR"="Xteq Systems"
  16. "CONTACTURL"="http://www.xteq.com"
  17. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  18. "COMMENT 1"=" "
  19.  
  20.  
  21. sP="HKLM\System\CurrentControlSet\Control\FileSystem\NameNumericTail"
  22. Sub Plugin_Initialize 
  23.     i=RegReadValue(sp)
  24.     if IsEmpty(i) then
  25.        SetUIElement 1,true
  26.     end if
  27. End Sub
  28.  
  29. Sub Plugin_CheckData(ElementIndex)
  30. End Sub
  31.  
  32. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  33.  b=GetUIElement(1)
  34.  if b=true then 'I want to have ARG~1.DOC
  35.   i=RegReadValue(sp)
  36.   if IsEmpty(i)=false then
  37.    Call RegDeleteValue(sp)
  38.   end if
  39.  else 'No thank you
  40.   Call RegWriteValue(sp,"00",3)
  41.  end if
  42.  
  43.  Restart
  44. End Sub
  45.  
  46. Sub Plugin_Terminate 
  47. End Sub
  48.